﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OrderM
{
    [Serializable]
    public class Customer
    {
        public string CustomerName { get; set; }

        public override bool Equals(object? obj)
        {
            Customer o = obj as Customer;
            return o != null && o.CustomerName == CustomerName;
        }

        public override int GetHashCode()
        {
            return HashCode.Combine(CustomerName);
        }
        public override string ToString()
        {
            return "Customer name:" + CustomerName;
        }
    }
}
